import java.io.*;

public class AllFileRead {
    public static void main(String[] args) throws IOException {
        File f=new File("IO_src/test.txt");
        InputStream is=new FileInputStream(f);

//        long size=f.length();
//        byte[] buffer=new byte[(int)size];
//        int len=is.read(buffer);
//        System.out.println(new String(buffer));
//        System.out.println(size);
//        System.out.println(len);
        byte[] buffer=is.readAllBytes();
        System.out.println(new String(buffer));
        is.close();
    }
}
